package com.foreverwin.mes.meapi.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.foreverwin.mes.meapi.model.NextNumber;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author syngna
 * @since 2019-01-10
 */
@Repository
public interface NextNumberMapper extends BaseMapper<NextNumber> {

    NextNumber selectByIdForUpdate(@Param("handle") String handle);

    List<String> selectIdentical(@Param("handle") String handle, @Param("prefix") String prefix, @Param("suffix") String suffix, @Param("forUpdate") boolean forUpdate);
}